Repository navigation
feat(chat): 在原生 Web 会话界面同步已读并显示上下文用量 / synchronize reads and show measured conversation context in the workbench - #18
Draft
Facetomyself wants to merge 10 commits into
Conversation
added 10 commits
November 27, 2026 10:18
…fied native storage
… and contextual usage
…nd attributed context usage
…ates and read state
…ter estimating context
…authorized status traffic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #17. Refs sqfcyily#67. Adds two visible desktop behaviors to the headless Workbench: native unread dots and the original model context ring. It is not a billing dashboard, auto-compacting agent, remote mobile relay, or tool runtime.
read-state.json. Only a visible, focused, selected ordinary chat whose latest durable message has actually been rendered can acknowledge a read. The server compares the observed native history and real scoped event cursor, rechecks the login, and advances only to its own captured timestamp. A mark for a stale/busy/restarted view does not clear later messages. A duplicate acknowledgement does not rewrite the file or broadcast a second invalidation.platformis separate.chat.markReadis newly implemented.chat.contextUsageremains partial (no automatic compaction threshold or learned server rejection limit), as doeschat.onRemoteChange(the complete desktop/phone remote change protocol remains separate).Verified at
a98573fContextRingreported 25% (3,200/12,800) on the original composer. Another model and a subsequent no-usage reply produced a labeled estimate; deleting the model cleared the stale meter. Two genuine confirmations, zero unattended read writes, same-socket scope-only invalidation, no redundant writes on revisits; precisely two intentional synthetic model calls. Final synthetic PNG SHA-256: context14d8b528496c38e24e06374b0975f7520b93d5f7b7b0e6b52fb7243b972da968; inactive-thread indicator3bd66389707d6edc6e8941a770d77011bff10347681db683c6ec378d0c921088. This evidence is not hosted ChromeDriver/W3C.--fixture-onlyused two distinct server process starts on persistent private data/keys: measured 2,345 versus saved-history estimate 28, one deliberate provider request; old cookie 401, old cursor 409, durable read timestamp and original native usage survived restart. It did not contact Docker. Fork Actions reported no run for this SHA, and the explicitly requested dispatch returned HTTP 422: “Actions has been disabled for this repository.” No fork settings, existing host deployment or other account was changed. Nativelinux/amd64container recreation and hosted W3C for this change remain unverified; the pinned-image acceptance command is available for a disposable runner. The optional browser's previously verified Docker sandbox rejection is unchanged.node scripts/workbench/export-parity-workbook.mjs --repo Facetomyself/deva --pr 18confirmed identical XLSX bytes, SHA-256be57bde28c76741699f11b22b24e146a7596e474df596f62e4859c2390b9e6b1.